<%--
  Created by IntelliJ IDEA.
  User: 27933
  Date: 2021/10/13
  Time: 15:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
<%--    <script type="text/javascript" src="jquery-1.7.2.js"></script>--%>

<%--    </script>--%>
</head>
<body>
<form action="reController" method="post">
    验证码<input type="text" name="code"><img src="captchaImageServlet" alt="这是验证码" id="code_img">
</form>
<script type="text/javascript">
   window.onload = function () {
       var elementById = document.getElementById("code_img");
       elementById.onclick = function () {
           this.src = "${basePath}/kapcha.jsp";
       }
   }
</script>

</body>
</html>
